package br.edu.fanor.esfinge.dao.impl;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.dao.TimelineDAO;
import br.edu.fanor.esfinge.entity.Timeline;

@Stateless(mappedName="ejb/Timeline")
@TransactionAttribute(TransactionAttributeType.REQUIRED)

public class TimelineDAOImpl implements TimelineDAO {
	
	@PersistenceContext
	private EntityManager em;

	@Override
	public Timeline inserir(Timeline timeline) {
		em.persist(timeline);
		return timeline;
	}

	@Override
	public Timeline buscarPorId(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Timeline atualizar(Timeline timeline) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void remover(Timeline timeline) {
		// TODO Auto-generated method stub
		
	}
	
	
	
	

}
